﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ALE_Server.EC
{
    [Serializable]
    public class ECLogicalReader
    {
        private string m_Value;

        public ECLogicalReader(string val)
        {
            m_Value = val;
        }

        public string Value
        {
            get
            {
                return m_Value;
            }
            set
            {
                m_Value = value;
            }
        }

        public override int GetHashCode()
        {
            return (m_Value != null ? m_Value.GetHashCode() : 0);
        }

        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return true;
            }

            if ((obj == null) || !(obj is ECLogicalReader))
            {
                return false;
            }

            ECLogicalReader Reader = obj as ECLogicalReader;

            return m_Value.Equals(Reader.Value);
        }
    }
}
